((typeof self !== 'undefined' ? self : this)["webpackJsonppage_engine"] = (typeof self !== 'undefined' ? self : this)["webpackJsonppage_engine"] || []).push([[6],{

/***/ "386d":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var anObject = __webpack_require__("cb7c");
var sameValue = __webpack_require__("83a1");
var regExpExec = __webpack_require__("5f1b");

// @@search logic
__webpack_require__("214f")('search', 1, function (defined, SEARCH, $search, maybeCallNative) {
  return [
    // `String.prototype.search` method
    // https://tc39.github.io/ecma262/#sec-string.prototype.search
    function search(regexp) {
      var O = defined(this);
      var fn = regexp == undefined ? undefined : regexp[SEARCH];
      return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
    },
    // `RegExp.prototype[@@search]` method
    // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
    function (regexp) {
      var res = maybeCallNative($search, regexp, this);
      if (res.done) return res.value;
      var rx = anObject(regexp);
      var S = String(this);
      var previousLastIndex = rx.lastIndex;
      if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
      var result = regExpExec(rx, S);
      if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
      return result === null ? -1 : result.index;
    }
  ];
});


/***/ }),

/***/ "3aee":
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),

/***/ "5442":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "5c69":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "771f":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_project_create_vue_vue_type_style_index_1_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3aee");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_project_create_vue_vue_type_style_index_1_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_project_create_vue_vue_type_style_index_1_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "7c77":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3712dab3-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./client/pages/home/project-create.vue?vue&type=template&id=554d92e8&scoped=true&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"page project-create"},[_c('div',{staticClass:"project-group_wrap"},[_c('div',{staticClass:"project-group_btns"},[_c('div',{staticClass:"ibox project-group_label"},[_vm._v("大屏分组")]),_c('i',{staticClass:"el-icon-plus project-group_btn_add",on:{"click":_vm.showAddGroup}})]),_c('ul',{staticClass:"project-group_names"},[_c('li',{staticClass:"project-group_name",class:{ 'active-group_name': _vm.activeMenu == 'all' }},[_c('div',{staticClass:"ibox project-group_title",on:{"click":function($event){_vm.presearchGroup('all', '', '');
							_vm.activeMenu = 'all';}}},[_c('i',{staticClass:"el-icon-folder-opened"}),_vm._v(" 默认大屏\n\t\t\t\t\t")]),_c('div',{staticClass:"ibox project-group_count"},[_vm._v(_vm._s(_vm.allAmount))])]),_vm._l((_vm.groupList),function(item){return _c('li',{key:item._id,staticClass:"project-group_name",class:{ 'active-group_name': _vm.activeMenu == item._id },on:{"click":function($event){return _vm.presearchGroup(item._id, item.author, item._id)}}},[_c('div',{staticClass:"ibox project-group_title"},[_c('div',{staticClass:"title"},[_c('i',{staticClass:"el-icon-folder-opened"}),_vm._v(" "+_vm._s(item.name)+"\n\t\t\t\t\t\t")]),_c('div',{staticClass:"option"},[_c('span',{staticClass:"m-r-10",on:{"click":function($event){return _vm.showEdit(item._id)}}},[_c('i',{staticClass:"el-icon-edit"})]),_c('span',{on:{"click":function($event){return _vm.fetchdeletegroup(item._id, item.name)}}},[_c('i',{staticClass:"el-icon-delete"})])])]),_c('div',{staticClass:"ibox project-group_count"},[_vm._v(_vm._s(item.count))])])}),_c('li',{staticClass:"project-group_name",class:{ 'active-group_name': _vm.activeMenu == 'remove' },on:{"click":function($event){return _vm.presearchGroup('remove', '', '')}}},[_vm._m(0),_c('div',{staticClass:"ibox project-group_count"},[_vm._v(_vm._s(_vm.removeAmount))])])],2)]),_c('div',{staticClass:"project-list_wrap"},[_c('div',{staticClass:"project-list_header"},[_vm._m(1),_c('div',{staticClass:"project-list_search"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.search),expression:"search"}],staticClass:"project-list_search_input",attrs:{"placeholder":"模糊搜索","type":"text"},domProps:{"value":(_vm.search)},on:{"input":function($event){if($event.target.composing){ return; }_vm.search=$event.target.value}}}),_c('span',{staticClass:"project-list_search_icon",on:{"click":_vm.searchdata}},[_c('i',{staticClass:"el-icon-search"})])]),_c('div',{staticClass:"project-list_search"},[_c('y-select',{attrs:{"options":_vm.sortList},on:{"change":function($event){return _vm.searchdata()}},model:{value:(_vm.sort),callback:function ($$v) {_vm.sort=$$v},expression:"sort"}})],1)]),_c('div',{staticClass:"project-list_body"},[_c('div',{staticClass:"project-list_item project-list_active addNew",on:{"click":_vm.onNewProject}},[_c('i',{staticClass:"el-icon-circle-plus-outline"}),_c('br'),_c('span',[_vm._v("新建大屏")])]),_vm._l((_vm.projectList.slice((_vm.page - 1) * 14, _vm.page * 14)),function(item){return _c('div',{key:item._id,staticClass:"project-list_item"},[_c('div',{staticClass:"project_list_item_proimg_wrap"},[_c('img',{staticClass:"project_list_item_proimg",attrs:{"src":item.thumbnailImage}}),_c('div',{staticClass:"project_list_item_operator_wrap"},[(item.isPublish && !item.isDelete && item.needpassword)?_c('div',{staticClass:"locked"},[_c('i',{staticClass:"el-icon-lock"})]):_vm._e(),_c('div',{staticClass:"project_list_item_operator_top"}),_c('div',{staticClass:"project_list_item_operator_bottom"},[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":"发布","placement":"top-start"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!item.isPublish && !item.isDelete),expression:"!item.isPublish && !item.isDelete"}],staticClass:"pllist",attrs:{"data-id":item._id},on:{"click":function($event){return _vm.showpublishDialogfn(item._id)}}},[_c('img',{attrs:{"src":__webpack_require__("5c69")}})])]),_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":"复制","placement":"top-start"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!item.isPublish && _vm.activeMenu != 'remove'),expression:"!item.isPublish && activeMenu != 'remove'"}],staticClass:"pllist",attrs:{"data-id":item._id},on:{"click":_vm.onCopyProject}},[_c('img',{attrs:{"src":__webpack_require__("ff1c")}})])]),_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":"删除","placement":"top-start"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!item.isPublish && _vm.activeMenu != 'remove'),expression:"!item.isPublish && activeMenu != 'remove'"}],staticClass:"pllist",attrs:{"data-id":item._id,"data-title":item.title},on:{"click":_vm.onDeleteProject}},[_c('img',{attrs:{"src":__webpack_require__("5442")}})])]),_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":"还原","placement":"top-start"}},[_c('i',{directives:[{name:"show",rawName:"v-show",value:(_vm.activeMenu == 'remove'),expression:"activeMenu == 'remove'"}],staticClass:"el-icon-refresh-left",attrs:{"data-id":item._id,"data-title":item.title},on:{"click":_vm.onUnDeleteProject}})]),_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":"设置为模板","placement":"top-start"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!item.isPublish && !item.isDelete),expression:"!item.isPublish && !item.isDelete"}],staticClass:"pllist",attrs:{"data-id":item._id},on:{"click":_vm.onTemplateCreate}},[_c('img',{attrs:{"src":__webpack_require__("d1cd")}})])]),_c('div',{staticClass:"project_list_item_operator_middle"},[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":"浏览发布界面","placement":"top-start"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(item.isPublish),expression:"item.isPublish"}],staticClass:"project_list_item_edit",attrs:{"data-id":item._id},on:{"click":function($event){return _vm.showpwdDialogfn(item._id, item.needpassword)}}},[_vm._v("\n\t\t\t\t\t\t\t\t\t\t\t查看\n\t\t\t\t\t\t\t\t\t\t")])])],1)],1),_c('div',{staticClass:"project_list_item_operator_middle"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!item.isPublish && !item.isDelete),expression:"!item.isPublish && !item.isDelete"}],staticClass:"project_list_item_edit item_preview",attrs:{"data-id":item._id},on:{"click":_vm.onPreview}},[_vm._v("\n\t\t\t\t\t\t\t\t\t预览\n\t\t\t\t\t\t\t\t")]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!item.isPublish && !item.isDelete),expression:"!item.isPublish && !item.isDelete"}],staticClass:"project_list_item_edit",attrs:{"data-id":item._id},on:{"click":_vm.onEditProject}},[_vm._v("\n\t\t\t\t\t\t\t\t\t编辑\n\t\t\t\t\t\t\t\t")])])])]),_c('div',{staticClass:"project_list_item_name_wrap"},[_c('i',{staticClass:"el-icon-edit",on:{"click":function($event){return _vm.changenameDialog(item)}}}),_c('el-tooltip',{staticClass:"item lighttooltip",attrs:{"effect":"light","content":item.title,"placement":"bottom-start","disabled":item.title.length && item.title.length > 10 ? false : true}},[_c('div',{staticClass:"projecttitle"},[_vm._v(_vm._s(item.title))])]),_c('span',{class:item.isPublish
									? 'project_list_pstatusa'
									: 'project_list_pstatus'},[_vm._v("\n\t\t\t\t\t\t\t"+_vm._s(item.isPublish ? "已发布" : "未发布")+"\n\t\t\t\t\t\t")])],1)])})],2),_c('div',{staticClass:"pagination"},[_c('el-pagination',{attrs:{"background":"","current-page":_vm.page,"page-size":14,"layout":"total, prev, pager, next","total":_vm.projectList.length || 0},on:{"update:currentPage":function($event){_vm.page=$event},"update:current-page":function($event){_vm.page=$event}}})],1)]),_c('y-dialog',{attrs:{"isShow":_vm.showAddDialog,"title":"添加分组"},on:{"close":function($event){_vm.showAddDialog = false}}},[_c('el-input',{attrs:{"placeholder":"添加分组","maxlength":"20"},model:{value:(_vm.groupinput),callback:function ($$v) {_vm.groupinput=$$v},expression:"groupinput"}}),_c('div',{staticClass:"sDialogline"},[_c('el-button',{attrs:{"type":"primary","size":"medium"},on:{"click":_vm.fetch_addGroup}},[_vm._v("确 定")])],1)],1),_c('y-dialog',{attrs:{"isShow":_vm.showEditDialog,"title":"修改分组名称"},on:{"close":function($event){_vm.showEditDialog = false}}},[_c('el-input',{attrs:{"placeholder":"修改分组","maxlength":"20"},model:{value:(_vm.editgroupinput),callback:function ($$v) {_vm.editgroupinput=$$v},expression:"editgroupinput"}}),_c('div',{staticClass:"sDialogline"},[_c('el-button',{attrs:{"type":"primary","size":"medium"},on:{"click":function($event){return _vm.fetchsetgroup()}}},[_vm._v("确 定")])],1)],1),_c('y-dialog',{attrs:{"isShow":_vm.showpublishDialog,"title":"发布大屏"},on:{"close":function($event){_vm.showpublishDialog = false}}},[_c('p',[_vm._v("\n\t\t\t\t发布后，会推送到已发布广场，他人可以通过发布广场访问大屏，加密发布需要输入密码才可访问大屏。\n\t\t\t")]),_c('br'),_c('el-checkbox',{model:{value:(_vm.needpassword),callback:function ($$v) {_vm.needpassword=$$v},expression:"needpassword"}},[_vm._v("是否加密发布")]),_c('br'),_c('br'),_c('el-input',{attrs:{"placeholder":"设置发布大屏密码","maxlength":"16","disabled":!_vm.needpassword},model:{value:(_vm.editpublishinput),callback:function ($$v) {_vm.editpublishinput=$$v},expression:"editpublishinput"}}),_c('div',{staticClass:"sDialogline"},[_c('el-button',{attrs:{"type":"primary","size":"medium"},on:{"click":_vm.onPublish}},[_vm._v("确 定")])],1)],1),_c('y-dialog',{attrs:{"isShow":_vm.showpwdDialog,"title":"密码验证"},on:{"close":function($event){_vm.showpwdDialog = false}}},[_c('p',[_vm._v("请输入正确的密码访问大屏")]),_c('br'),_c('el-input',{attrs:{"placeholder":"访问密码","maxlength":"16"},model:{value:(_vm.pwdinput),callback:function ($$v) {_vm.pwdinput=$$v},expression:"pwdinput"}}),_c('div',{staticClass:"sDialogline"},[_c('el-button',{attrs:{"type":"primary","size":"medium"},on:{"click":_vm.oncheckpwd}},[_vm._v("确 定")])],1)],1),_c('y-dialog',{attrs:{"isShow":_vm.showchangenameDialog,"title":"修改大屏项目名称"},on:{"close":function($event){_vm.showchangenameDialog = false}}},[_c('el-input',{staticClass:"project_list_item_name",attrs:{"data-id":_vm.nowitem._id,"type":"text","maxlength":"16"},model:{value:(_vm.nowitem.title),callback:function ($$v) {_vm.$set(_vm.nowitem, "title", $$v)},expression:"nowitem.title"}}),_c('div',{staticClass:"sDialogline"},[_c('el-button',{attrs:{"type":"primary","size":"medium"},on:{"click":_vm.onProjectNameBlur}},[_vm._v("确 定")])],1)],1)],1)}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ibox project-group_title"},[_c('i',{staticClass:"el-icon-delete"}),_vm._v(" 回收站\n\t\t\t\t\t")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"project-list_info"},[_c('div',{staticClass:"ibox project-list_title"},[_vm._v("大屏列表")])])}]


// CONCATENATED MODULE: ./client/pages/home/project-create.vue?vue&type=template&id=554d92e8&scoped=true&

// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js
var es7_object_get_own_property_descriptors = __webpack_require__("8e6e");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
var web_dom_iterable = __webpack_require__("ac6a");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
var es6_object_keys = __webpack_require__("456d");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.find-index.js
var es6_array_find_index = __webpack_require__("20d6");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.sort.js
var es6_array_sort = __webpack_require__("55dd");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.search.js
var es6_regexp_search = __webpack_require__("386d");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__("ade3");

// EXTERNAL MODULE: ./node_modules/vuex/dist/vuex.esm.js
var vuex_esm = __webpack_require__("2f62");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./client/pages/home/project-create.vue?vue&type=script&lang=js&








function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var project_createvue_type_script_lang_js_ = ({
  data: function data() {
    return {
      page: 1,
      projectList: [],
      allAmount: 0,
      unpublishAmount: 0,
      publishAmount: 0,
      removeAmount: 0,
      ungroupAmount: 0,
      allpublishAmount: 0,
      showAddDialog: false,
      showEditDialog: false,
      showpublishDialog: false,
      showpwdDialog: false,
      showchangenameDialog: false,
      needpassword: false,
      gopublishID: "",
      groupinput: "",
      editgroupinput: "",
      editpublishinput: "",
      pwdinput: "",
      editId: "",
      groupList: [],
      search: "",
      activeMenu: "all",
      groupID: "",
      type: "all",
      author: "",
      sort: "2",
      sortList: [{
        label: "按照修改时间排序（升序）",
        value: "1"
      }, {
        label: "按照修改时间排序（降序）",
        value: "2"
      }, {
        label: "按照创建时间排序（升序）",
        value: "3"
      }, {
        label: "按照创建时间排序（降序）",
        value: "4"
      }],
      nowitem: {}
    };
  },
  created: function created() {
    //加载projectlist
    this.initProjectList();
    this.fetch_myProjects_count();
    this.fetch_getgroupList();
  },
  computed: _objectSpread({}, Object(vuex_esm["c" /* mapState */])({
    userData: function userData(state) {
      return state.user.userData;
    }
  })),
  methods: {
    changenameDialog: function changenameDialog(item) {
      this.nowitem = JSON.parse(JSON.stringify(item));
      this.showchangenameDialog = true;
      console.log(item);
    },
    recount: function recount() {
      this.fetch_getgroupList();
      this.fetch_myProjects_count();
      this.searchGroup();
    },
    searchdata: function searchdata() {
      this.initProjectList(true);
    },
    onNewProject: function onNewProject() {
      this.$router.push({
        name: "templateCreate"
      });
    },
    initProjectList: function initProjectList(issearch) {
      this.searchGroup(issearch);
    },
    fetchsetgroup: function fetchsetgroup() {
      var _this = this;

      if (this.editgroupinput === '') {
        this.$message.error("请输入分组名称");
        return;
      }

      this.$axios.post("/grouplist/setgroup", {
        gid: this.editId,
        name: this.editgroupinput
      }).then(function (res) {
        if (res.body && res.status) {
          _this.fetch_getgroupList();

          _this.showEditDialog = false;
        }
      });
    },
    fetchdeletegroup: function fetchdeletegroup(gid, name) {
      var _this2 = this;

      this.$confirm("".concat(name, "\u5206\u7EC4\u5220\u9664\u540E\uFF0C\u5206\u7EC4\u4E0B\u7684\u5927\u5C4F\u5C06\u79FB\u5165\u672A\u5206\u7EC4\u4E2D\uFF0C\u786E\u8BA4\u5220\u9664\uFF1F"), "提示", {
        iconClass: "el-icon-warning",
        callback: function callback(res) {
          if (res.action === "confirm") {
            _this2.$axios.post("/grouplist/deletegroup", {
              gid: gid
            }).then(function (res) {
              if (res.body && res.status) {
                _this2.activeMenu = "all";
                _this2.type = "all";

                _this2.$nextTick(function () {
                  _this2.recount();
                });
              }
            });
          }
        }
      });
    },
    fetch_myProjects_unpublish: function fetch_myProjects_unpublish() {
      var _this3 = this;

      this.$axios.get("/project/myProjects_unpublish").then(function (res) {
        if (res.body && res.body.data && Array.isArray(res.body.data)) {
          _this3.projectList = res.body.data;
        }
      });
    },
    fetch_myProjects_publish: function fetch_myProjects_publish() {
      var _this4 = this;

      this.$axios.get("/project/myProjects_publish").then(function (res) {
        if (res.body && res.body.data && Array.isArray(res.body.data)) {
          _this4.projectList = res.body.data;
        }
      });
    },
    myProjects_removed: function myProjects_removed() {
      var _this5 = this;

      this.$axios.get("/project/myProjects_removed").then(function (res) {
        if (res.body && res.body.data && Array.isArray(res.body.data)) {
          _this5.projectList = res.body.data;
        }
      });
    },
    fetch_myProjects_count: function fetch_myProjects_count() {
      var _this6 = this;

      this.$axios.get("/project/myProjects_amount").then(function (res) {
        if (res.body) {
          _this6.allAmount = res.body.allAmount || 0;
          _this6.publishAmount = res.body.publishAmount || 0;
          _this6.unpublishAmount = res.body.unpublishAmount || 0;
          _this6.removeAmount = res.body.removeAmount || 0;
          _this6.ungroupAmount = res.body.ungroupAmount || 0;
          _this6.allpublishAmount = res.body.allpublishAmount || 0;
        }
      });
    },
    fetch_getgroupList: function fetch_getgroupList() {
      var _this7 = this;

      this.$axios.get("/grouplist/getlist").then(function (res) {
        if (res.body && Array.isArray(res.body)) {
          _this7.groupList = res.body;
        }
      });
    },
    fetch_addGroup: function fetch_addGroup() {
      var _this8 = this;

      this.$axios.post("/grouplist/addgroup", {
        groupinput: this.groupinput
      }).then(function (res) {
        if (res) {
          _this8.fetch_getgroupList();

          _this8.showAddDialog = false;
        }
      });
    },
    fetch_myProjects_group: function fetch_myProjects_group(params) {
      var _this9 = this;

      this.$axios.post("/project/myProjects_group", {
        params: params
      }).then(function (res) {
        if (res.body && res.body.data && Array.isArray(res.body.data)) {
          _this9.projectList = res.body.data.filter(function (item) {
            return !item.isTemplate;
          });
        }
      });
    },
    presearchGroup: function presearchGroup(type, author, groupID) {
      this.type = type;
      this.author = author;
      this.groupID = groupID;
      this.searchGroup(false);
    },
    searchGroup: function searchGroup(issearch) {
      !issearch ? this.search = "" : "";
      var params = {
        type: this.type || "",
        author: this.author || "",
        groupID: this.groupID || "",
        search: this.search || "",
        sort: this.sort || "1"
      };
      this.activeMenu = this.type;
      this.fetch_myProjects_group(params);
    },
    onProjectNameBlur: function onProjectNameBlur() {
      var _this10 = this;

      var _id = this.nowitem._id;
      var arr = this.nowitem;

      if (arr && arr.title && arr.title !== "") {
        this.$axios.post("/project/modifyName/" + _id, {
          title: arr.title
        }).then(function (res) {
          if (res.code === 200) {
            console.log(_this10.projectList);

            var reprojectList = _this10.projectList.map(function (item) {
              if (item._id === _id) {
                item.title = arr.title;
              }

              return item;
            });

            _this10.projectList = reprojectList;
            _this10.showchangenameDialog = false;

            _this10.$msgbox({
              title: "提示",
              message: "项目名已修改",
              iconClass: "el-icon-success"
            });
          }
        });
      } else {
        this.$msgbox({
          title: "提示",
          message: "请输入正确的名称",
          iconClass: "el-icon-error"
        });
      }
    },
    onEditProject: function onEditProject(e) {
      var _id = e.currentTarget.dataset.id;
      this.$router.push({
        name: "PowerEditor",
        params: {
          id: _id
        }
      });
    },
    onDeleteProject: function onDeleteProject(e) {
      var _this11 = this;

      var _id = e.currentTarget.dataset.id;
      var title = e.currentTarget.dataset.title || "";
      this.$confirm("\u786E\u5B9A\u8981\u5220\u9664 \"".concat(title, "\" \u5417"), "提示", {
        iconClass: "el-icon-warning",
        callback: function callback(res) {
          if (res.action === "confirm") {
            _this11.$axios.post("/project/tempdelete/" + _id).then(function (res) {
              if (res.code === 200) {
                var index = _this11.projectList.findIndex(function (t) {
                  return t._id === _id;
                });

                _this11.projectList.splice(index, 1);

                _this11.$msgbox({
                  title: "提示",
                  message: "删除成功",
                  iconClass: "el-icon-success"
                });

                _this11.recount();
              }
            }).catch(function (e) {
              console.warn(e.message);
            });
          }
        }
      });
    },
    onUnDeleteProject: function onUnDeleteProject(e) {
      var _this12 = this;

      var _id = e.currentTarget.dataset.id;
      var title = e.currentTarget.dataset.title || "";
      this.$confirm("\u786E\u5B9A\u8981\u8FD8\u539F \"".concat(title, "\" \u5417"), "提示", {
        iconClass: "el-icon-warning",
        callback: function callback(res) {
          if (res.action === "confirm") {
            _this12.$axios.post("/project/tempUndelete/" + _id).then(function (res) {
              if (res.code === 200) {
                var index = _this12.projectList.findIndex(function (t) {
                  return t._id === _id;
                });

                _this12.projectList.splice(index, 1);

                _this12.$msgbox({
                  title: "提示",
                  message: "还原成功",
                  iconClass: "el-icon-success"
                });
              }

              _this12.recount();
            }).catch(function (e) {
              console.warn(e.message);
            });
          }
        }
      });
    },
    onTemplateCreate: function onTemplateCreate(e) {
      var _this13 = this;

      var _id = e.currentTarget.dataset.id;
      this.$axios.post("/project/setTemplate/" + _id).then(function (res) {
        if (res.code === 200) {
          _this13.$msgbox({
            title: "提示",
            message: "已设置为模板",
            iconClass: "el-icon-success"
          });
        }
      });
    },
    onCopyProject: function onCopyProject(e) {
      var _this14 = this;

      var _id = e.currentTarget.dataset.id;
      this.$axios.post("/project/copy/" + _id).then(function (res) {
        if (res.code === 200) {
          var project = res.body;

          _this14.projectList.splice(_this14.projectList.length - 1, 0, project);
        }
      });
    },
    onPreview: function onPreview(e) {
      var _id = e.currentTarget.dataset.id;
      window.open("".concat(this.$config.serverURl, "/project/view/").concat(_id), "_blank");
    },
    onPublish: function onPublish(e) {
      var _this15 = this;

      var _id = e.currentTarget.dataset.id;
      this.$axios.post("/project/publish/" + this.gopublishID, {
        needpassword: this.needpassword,
        editpublishinput: this.editpublishinput
      }).then(function (res) {
        if (res.code === 200) {
          // let index = this.projectList.findIndex((t) => t._id === _id);
          // let project = this.projectList[index];
          // project.isPublish = true;
          // this.projectList.splice(index, 1, project);
          _this15.presearchGroup("publish", "", "");

          _this15.$msgbox({
            title: "提示",
            message: "已发布",
            iconClass: "el-icon-success"
          });

          _this15.showpublishDialog = false;

          _this15.recount();
        } else {
          _this15.$msgbox({
            title: "提示",
            message: "发布失败",
            iconClass: "el-icon-error"
          });
        }
      });
    },
    showpwdDialogfn: function showpwdDialogfn(pwd, needpassword) {
      this.gopublishID = pwd;
      needpassword ? this.showpwdDialog = true : this.onPublishLink();
    },
    oncheckpwd: function oncheckpwd() {
      var _this16 = this;

      this.$axios.post("/project/ckeckpublishpwd", {
        id: this.gopublishID,
        pwd: this.pwdinput
      }).then(function (res) {
        if (res.body) {
          _this16.onPublishLink();

          _this16.showpwdDialog = false;
        } else {
          _this16.$msgbox({
            title: "提示",
            message: "密码错误，请重新输入。",
            iconClass: "el-icon-error"
          });
        }
      });
    },
    onPublishLink: function onPublishLink() {
      var _id = this.gopublishID;
      var token = this.userData.token;
      window.open("".concat(this.$config.serverURl, "/project/verify/").concat(_id, "/").concat(token), "_blank");
    },
    showAddGroup: function showAddGroup() {
      this.showAddDialog = true;
    },
    showEdit: function showEdit(id) {
      this.showEditDialog = true;
      this.editId = id;
    },
    showpublishDialogfn: function showpublishDialogfn(e) {
      this.gopublishID = e;
      this.showpublishDialog = true;
    }
  }
});
// CONCATENATED MODULE: ./client/pages/home/project-create.vue?vue&type=script&lang=js&
 /* harmony default export */ var home_project_createvue_type_script_lang_js_ = (project_createvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./client/pages/home/project-create.vue?vue&type=style&index=0&id=554d92e8&lang=stylus&scoped=true&
var project_createvue_type_style_index_0_id_554d92e8_lang_stylus_scoped_true_ = __webpack_require__("a656");

// EXTERNAL MODULE: ./client/pages/home/project-create.vue?vue&type=style&index=1&lang=css&
var project_createvue_type_style_index_1_lang_css_ = __webpack_require__("771f");

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./client/pages/home/project-create.vue







/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  home_project_createvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  "554d92e8",
  null
  
)

/* harmony default export */ var project_create = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "83a1":
/***/ (function(module, exports) {

// 7.2.9 SameValue(x, y)
module.exports = Object.is || function is(x, y) {
  // eslint-disable-next-line no-self-compare
  return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};


/***/ }),

/***/ "a656":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_index_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_stylus_loader_index_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_project_create_vue_vue_type_style_index_0_id_554d92e8_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cd84");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_index_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_stylus_loader_index_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_project_create_vue_vue_type_style_index_0_id_554d92e8_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_index_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_stylus_loader_index_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_project_create_vue_vue_type_style_index_0_id_554d92e8_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "cd84":
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),

/***/ "d1cd":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "ff1c":
/***/ (function(module, exports) {

module.exports = ""

/***/ })

}]);